﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;


public class StfInfo
{
    /// <summary>
    /// 重新会话
    /// </summary>
    /// <returns></returns>
    public static bool ReSession()
    {
        if (HttpContext.Current.Session["ID"] == null)
        {
            System.Web.Security.FormsAuthentication.SignOut();
            HttpContext.Current.Response.Write("<script>top.location.href='../login.aspx'</script>");
            return true;
        }
        return false;
    }
}

